package com.wsc.util;

import com.wsc.exception.MyNullException;

/**
 * 自定义断言
 */
public interface Assert {
    default void assertNotNull(Object obj){
        if (obj == null){
            throw new MyNullException(obj+"object 错误");
        }
    }
}
